package com.ricky.cloud.controller;

import com.ricky.cloud.config.FeignClientConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by baiguantao on 2017/10/26.
 */
@RestController
public class ClientController {
    @Autowired
    FeignClientConfig clientConfig;

    @GetMapping("/greeting")
    public String greeting(){
        return clientConfig.greet();
    }
}
